import { createRouter } from "vue-router";
import { createWebHistory } from "vue-router";

const router = createRouter({
    history: createWebHistory(),
    routes: [
        {
            path: "/",
            component: () => import("../App.vue")
        }, //默认路径，只能有一个

        {
            path: "/index",
            component: () => import("../views/Index.vue"),
            children: [
                {
                    path: "/runAnalysis",
                    component: () => import("../views/RunAnalysis.vue")
                }, //软映射，可多个
        
                {
                    path: "/singleAnalysis",
                    component: () => import("../views/SingleAnalysis.vue")
                }, 
        
                {
                    path: "/aggregateAnalysis",
                    component: () => import("../views/AggregateAnalysis.vue")
                }, 

                {
                    path: "/parameterExplanation",
                    component: () => import("../views/ParamterExplanation.vue")
                }, 

                {
                    path: "/infoQuery",
                    component: () => import("../views/InfoQuery.vue")
                }, 

                {
                    path: "/proLine",
                    component: () => import("../views/ProLineMaintenance.vue")
                },
                
                {
                    path: "/proLineException",
                    component: () => import("../views/ProLineExceptionAll.vue")
                },

                {
                    path: "/reasonAnalysis",
                    component: () => import("../views/ExceptionReasonAnalysis.vue")
                },
            ]
        }
        
        
    ],
})

export default router;